package com.qiangesoft.im.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qiangesoft.im.auth.UserUtil;
import com.qiangesoft.im.entity.ImMessageReceiver;
import com.qiangesoft.im.mapper.ImMessageReceiverMapper;
import com.qiangesoft.im.service.IImMessageReceiverService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 群用户消息关系 服务实现类
 * </p>
 *
 * @author qiangesoft
 * @since 2023-08-23
 */
@Service
public class ImMessageReceiverServiceImpl extends ServiceImpl<ImMessageReceiverMapper, ImMessageReceiver> implements IImMessageReceiverService {

    @Override
    public void updateRead(Long chatId, Long messageId) {
        baseMapper.updateRead(UserUtil.getUserId(), chatId, messageId);
    }
}
